.class public Lcom/philzhu/www/ddz/Card;
.super Ljava/lang/Object;
.source "Card.java"


# static fields
.field public static final CARD_10_NUM:I = 0xa

.field public static final CARD_2_NUM:I = 0xf

.field public static final CARD_3_NUM:I = 0x3

.field public static final CARD_4_NUM:I = 0x4

.field public static final CARD_5_NUM:I = 0x5

.field public static final CARD_6_NUM:I = 0x6

.field public static final CARD_7_NUM:I = 0x7

.field public static final CARD_8_NUM:I = 0x8

.field public static final CARD_9_NUM:I = 0x9

.field public static final CARD_A_NUM:I = 0xe

.field public static final CARD_BIG_JOKER_NUM:I = 0x11

.field public static final CARD_HEIGHT:I = 0x7e

.field public static final CARD_J_NUM:I = 0xb

.field public static final CARD_K_NUM:I = 0xd

.field public static final CARD_Q_NUM:I = 0xc

.field public static final CARD_SMALL_JOKER_NUM:I = 0x10

.field public static final CARD_WIDTH:I = 0x5c

.field public static final CLUB:I = 0x1

.field public static final Card_PICKED_OFFSET:I = 0xa

.field public static final DIOMAND:I = 0x0

.field public static final HEART:I = 0x2

.field public static final JOKER:I = 0x4

.field public static final SPADE:I = 0x3


# instance fields
.field public index:I

.field public isPicked:Z

.field public name:Ljava/lang/String;

.field public num:I

.field public suit:I


# direct methods
.method public constructor <init>(II)V
    .locals 5
    .parameter "num"
    .parameter "suit"

    .prologue
    const/4 v4, 0x3

    const/4 v3, 0x2

    const/4 v2, 0x1

    .line 36
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 34
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/philzhu/www/ddz/Card;->isPicked:Z

    .line 38
    iput p1, p0, Lcom/philzhu/www/ddz/Card;->index:I

    .line 39
    iput p2, p0, Lcom/philzhu/www/ddz/Card;->suit:I

    .line 40
    if-ne p2, v4, :cond_1

    const-string v1, "\u9ed1\u6843"

    move-object v0, v1

    .line 41
    .local v0, suitName:Ljava/lang/String;
    :goto_0
    if-gt p2, v4, :cond_9

    .line 43
    if-nez p1, :cond_4

    .line 45
    const/16 v1, 0xe

    iput v1, p0, Lcom/philzhu/www/ddz/Card;->num:I

    .line 46
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "A"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/philzhu/www/ddz/Card;->name:Ljava/lang/String;

    .line 87
    :cond_0
    :goto_1
    return-void

    .line 40
    .end local v0           #suitName:Ljava/lang/String;
    :cond_1
    if-ne p2, v3, :cond_2

    const-string v1, "\u7ea2\u5fc3"

    move-object v0, v1

    goto :goto_0

    :cond_2
    if-ne p2, v2, :cond_3

    const-string v1, "\u8349\u82b1"

    move-object v0, v1

    goto :goto_0

    :cond_3
    const-string v1, "\u65b9\u5757"

    move-object v0, v1

    goto :goto_0

    .line 48
    .restart local v0       #suitName:Ljava/lang/String;
    :cond_4
    if-ne p1, v2, :cond_5

    .line 50
    const/16 v1, 0xf

    iput v1, p0, Lcom/philzhu/www/ddz/Card;->num:I

    .line 51
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "2"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/philzhu/www/ddz/Card;->name:Ljava/lang/String;

    goto :goto_1

    .line 55
    :cond_5
    add-int/lit8 v1, p1, 0x1

    iput v1, p0, Lcom/philzhu/www/ddz/Card;->num:I

    .line 56
    const/16 v1, 0xa

    if-ne p1, v1, :cond_6

    .line 58
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "J"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/philzhu/www/ddz/Card;->name:Ljava/lang/String;

    goto :goto_1

    .line 60
    :cond_6
    const/16 v1, 0xb

    if-ne p1, v1, :cond_7

    .line 62
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "Q"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/philzhu/www/ddz/Card;->name:Ljava/lang/String;

    goto :goto_1

    .line 64
    :cond_7
    const/16 v1, 0xc

    if-ne p1, v1, :cond_8

    .line 66
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "K"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/philzhu/www/ddz/Card;->name:Ljava/lang/String;

    goto :goto_1

    .line 70
    :cond_8
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v2, p0, Lcom/philzhu/www/ddz/Card;->num:I

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/philzhu/www/ddz/Card;->name:Ljava/lang/String;

    goto/16 :goto_1

    .line 74
    :cond_9
    const/4 v1, 0x4

    if-ne p2, v1, :cond_0

    .line 76
    if-ne p1, v2, :cond_a

    .line 78
    const/16 v1, 0x10

    iput v1, p0, Lcom/philzhu/www/ddz/Card;->num:I

    .line 79
    const-string v1, "\u5c0f\u738b"

    iput-object v1, p0, Lcom/philzhu/www/ddz/Card;->name:Ljava/lang/String;

    goto/16 :goto_1

    .line 81
    :cond_a
    if-ne p1, v3, :cond_0

    .line 83
    const/16 v1, 0x11

    iput v1, p0, Lcom/philzhu/www/ddz/Card;->num:I

    .line 84
    const-string v1, "\u5927\u738b"

    iput-object v1, p0, Lcom/philzhu/www/ddz/Card;->name:Ljava/lang/String;

    goto/16 :goto_1
.end method
